package hu.application;

/**
 * 4 status:
 * null
 * ready
 * running
 * paused
 * 
 * @author Hu
 *
 */
public interface Task {

	/**
	 * null-->ready
	 */
	void init();
	
	/**
	 * ready-->running
	 * paused-->running
	 */
	void start();
	
	/**
	 * running-->paused
	 */
	void pause();
	
	/**
	 * running-->ready
	 * paused-->ready
	 */
	void stop();
	
	/**
	 * ready-->null
	 * running-->null
	 * paused-->null
	 */
	void destroy();
}
